package com.indusfo.spc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.indusfo.spc.common.pojo.BasePojo;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

/**
 * @author chenm
 * @create 2019-11-26 9:27
 *  @Description 工艺文件
 */
@Getter
@Setter
public class Profile extends BasePojo {
  /*
  工艺文件id
  */
  private Integer profileId;
  /*
  物料/产品id
  */
    private Integer matId;

  /*
  物料版本id
  */
    private Integer matVerId;
  /*
    创建者
  */
    private Integer userId;
  /*
    创建日期
  */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
  /*
    修改日期
  */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;
  /*
    备注
  */
    private String remark;

    /*
    状态
  */
    private Integer dataState;
    /**
     * 分割线
    * */
  @Transient
  private String matName;

  @Transient
  private String matModel;

  @Transient
  private String matCode;
  /**
   * 物料版本名称
   */
  @Transient
  private String matVerName;

  @Transient
  private List<ProfileDetail> details;

  private String uuid;

  public Integer getProfileId() {
    return profileId;
  }

  public void setProfileId(Integer profileId) {
    this.profileId = profileId;
  }

  public Integer getMatId() {
    return matId;
  }

  public void setMatId(Integer matId) {
    this.matId = matId;
  }

  public Integer getMatVerId() {
    return matVerId;
  }

  public void setMatVerId(Integer matVerId) {
    this.matVerId = matVerId;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }

  public Date getModifyDate() {
    return modifyDate;
  }

  public void setModifyDate(Date modifyDate) {
    this.modifyDate = modifyDate;
  }

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

  public Integer getDataState() {
    return dataState;
  }

  public void setDataState(Integer dataState) {
    this.dataState = dataState;
  }

  public String getMatName() {
    return matName;
  }

  public void setMatName(String matName) {
    this.matName = matName;
  }

  public String getMatModel() {
    return matModel;
  }

  public void setMatModel(String matModel) {
    this.matModel = matModel;
  }

  public String getMatCode() {
    return matCode;
  }

  public void setMatCode(String matCode) {
    this.matCode = matCode;
  }

  public String getMatVerName() {
    return matVerName;
  }

  public void setMatVerName(String matVerName) {
    this.matVerName = matVerName;
  }

  public List<ProfileDetail> getDetails() {
    return details;
  }

  public void setDetails(List<ProfileDetail> details) {
    this.details = details;
  }

  public String getUuid() {
    return uuid;
  }

  public void setUuid(String uuid) {
    this.uuid = uuid;
  }
}
